package com.example.springbootexamples;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.blinkfox.fenix.EnableFenix;
import com.blinkfox.fenix.jpa.FenixJpaRepositoryFactoryBean;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@EnableCaching
@SpringBootApplication
@NacosPropertySource(dataId = "example", autoRefreshed = true)
@MapperScan(value = {"com.example.springbootexamples.mapper","com.example.springbootexamples.dao"})
//@EnableJpaRepositories(repositoryFactoryBeanClass = FenixJpaRepositoryFactoryBean.class)
@EnableFenix
public class SpringbootexamplesApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootexamplesApplication.class, args);
	}

}
